﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Code.Models
{
    public enum NoticeState
    {
        /// <summary>
        /// 隐藏
        /// </summary>
        Hidden=-1,
        /// <summary>
        /// 显示
        /// </summary>
        Show=0
    }

    public static class NoticeStateEx
    {
        public static string GetName(this NoticeState state)
        {
            switch (state)
            { 
                case NoticeState.Hidden:
                    return "隐藏";
                case NoticeState.Show:
                    return "显示";
                default:
                    return state.ToString();
            }
        }
    }
}
